package com.FangFaYingYong.A01FangFaYingYong;

import java.util.ArrayList;
import java.util.Collections;

public class Test01 {
    public static void main(String[] args) {
        /*
        * 集合中存储一些字符串的数据 比如张三,123
        * 收集到student类型的数组中
        * */

        ArrayList<String> list = new ArrayList<String>();
        Collections.addAll(list,"张三,123","李四,456","王五,789");
        C04_Student[] array = list.stream().map(C04_Student::new).toArray(C04_Student[]::new);
    }
}
